package za.ac.lance.interfacesegregationprinciple.violates.impl;

import za.ac.lance.interfacesegregationprinciple.violates.Person;

public class Lecturer implements Person
{

    private String LecturerName;
    private String LecNumber;

    @Override
    public String Name(String Name)
    {
        LecturerName = Name;
        return LecturerName;
    }

    @Override
    public boolean UserName(String User)
    {
        LecNumber = User;
        if (User.equals("1"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    @Override
    public String TypeOfUser()
    {
        if (LecNumber.equals("1"))
        {
            return "Lecturer";
        }
        else
        {
            return "Student";
        }
    }
}
